projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b996117
)
Clear more data in font-lock-refontify to ensure refontifying
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 30 Oct 2019 14:39:44 +0000
(15:39 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 30 Oct 2019 14:39:44 +0000
(15:39 +0100)
* lisp/font-lock.el (font-lock-refontify): Clear out even more data.
lisp/font-lock.el
patch
|
blob
|
history
diff --git
a/lisp/font-lock.el
b/lisp/font-lock.el
index 2c91586c99dddbfb9469d46526eda6dd89f45b1c..ef0e2dc0458282a2397cd69b95b839e17a0b5711 100644
(file)
--- a/
lisp/font-lock.el
+++ b/
lisp/font-lock.el
@@
-1106,7
+1106,8
@@
This functions is a convenience functions when developing font
locking for a mode, and is not meant to be called from lisp functions."
(interactive)
(declare (interactive-only t))
- (setq font-lock-major-mode nil)
+ (setq font-lock-major-mode nil
+ syntax-propertize--done -1)
(font-lock-set-defaults)
(save-excursion
(font-lock-fontify-region (point-min) (point-max))))